﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="HandleWorkHeader.ascx.vb"
    Inherits="WebForm_ManageWorkHeader_HandleWorkHeader" %>
<asp:FormView ID="fv" width="100%" runat="server" DefaultMode="ReadOnly">
    <ItemTemplate>
        <table width="100%" align="center">
            <tr id="trRandomCasePassword" runat="server">
                <td align="right" style="background-color:LightBlue">
                    <asp:Label ID="lblRandomCasePassword" runat="server" meta:resourcekey="lblRandomCasePassword"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblRandomCasePasswordValue" runat="server" Text='<%# Eval("RandomCasePassword") %>' ></asp:Label>
                </td>
            </tr>
            <tr id="trCasePassword" runat="server">
                <td align="right" style="background-color:LightBlue">
                    <asp:Label ID="lblCasePassword" runat="server" meta:resourcekey="lblCasePassword"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblCasePasswordValue" runat="server" Text='<%# Eval("CasePassword") %>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="background-color:LightBlue">
                    <asp:Label ID="lblCreateBy" runat="server" meta:resourcekey="lblCreateBy"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblCreateByValue" runat="server" Text='<%# Eval("CreateBy") %>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="background-color:LightBlue">
                    <asp:Label ID="lblCreateTel" runat="server" meta:resourcekey="lblCreateTel"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblCreateTelValue" runat="server" Text='<%# Eval("CreateTel") %>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="background-color:LightBlue">
                    <asp:Label ID="lblCreateEmail" runat="server" meta:resourcekey="lblCreateEmail"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblCreateEmailValue" runat="server" Text='<%# Eval("CreateEmail") %>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="background-color:LightBlue">
                    <asp:Label ID="lblRegionType" runat="server" meta:resourcekey="lblRegionType"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblRegionTypeValue" runat="server" Text='<%# Eval("RegionType") %>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="background-color:LightBlue">
                    <asp:Label ID="lblLocation" runat="server" meta:resourcekey="lblLocation"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblLocationValue" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="background-color:LightBlue">
                    <asp:Label ID="lblReportDate" runat="server" meta:resourcekey="lblReportDate"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblReportDateValue" Text='<%#Bind("ReportDate", "{0:yyyy.MM.dd HH:mm}") %>' runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="background-color:LightBlue">
                    <asp:Label ID="lblTopic" runat="server" meta:resourcekey="lblTopic"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblTopicValue" runat="server" Text='<%#Bind("Topic") %>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="background-color:LightBlue">
                    <asp:Label ID="lblDirtyItem" runat="server" meta:resourcekey="lblDirtyItem"></asp:Label>
                </td>
                <td>
                    <asp:Label Width="350px" ID="lblDirtyItemValue" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="background-color:LightBlue">
                    <asp:Label ID="lblDescription" runat="server" meta:resourcekey="lblDescription"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblDescriptionValue" runat="server" Text='<%#Bind("Description") %>'></asp:Label>
                </td>
            </tr>
            <tr runat="server" id="trActionRecord">
                <td align="right" style="background-color:LightBlue">
                    <asp:Label ID="lblActionRecord" runat="server" meta:resourcekey="lblActionRecord"></asp:Label>
                </td>
                <td>
                    <My:MyGridView ID="gvActionRecord" HeaderStyle-HorizontalAlign="Center" EmptyDataRowStyle-HorizontalAlign="Center" runat="server" SkinID="pager" AllowHoverSelect="False" DataKeyNames="ActionRecordID"
                        MySortDirection="Ascending" meta:resourcekey="gvActionRecord" TotalRowCount="0">
                        <Columns>
                            <asp:BoundField DataField="UpdateDate" dataformatstring="{0:yyyy.MM.dd}" meta:resourcekey="bfUpdateDate">  
                                <headerstyle horizontalalign="Center" width="80px" />       
                                <itemstyle horizontalalign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="OrganizationName" meta:resourcekey="bfOrganizationName">   
                                <headerstyle horizontalalign="Center" width="110px" />     
                                <itemstyle horizontalalign="Center" width="110px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="StatusText" meta:resourcekey="bfStatusText" >  
                                <itemstyle horizontalalign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Comment" meta:resourcekey="bfComment" />
                        </Columns>
                    </My:MyGridView> 
                </td>
            </tr>

            
            <tr>
                <td align="right" style="background-color:LightBlue">
                    <asp:Label ID="lblPicture" runat="server" meta:resourcekey="lblPicture"></asp:Label>               
                </td>
                <td align="left">
                    <table width="100%">
                        <tr>
                            <td align="left">
                                <asp:LinkButton ID="lbtnUploadA" runat="server" meta:resourcekey="lbtnUploadA"></asp:LinkButton>
                                &nbsp;<asp:LinkButton ID="lbtnUploadB" runat="server" meta:resourcekey="lbtnUploadB"></asp:LinkButton>
                            </td>
                            <td align="right">
                                <asp:HyperLink ID="HyperLink1" SkinID="Description" runat="server" NavigateUrl="~/Public/Description/Picture.html"></asp:HyperLink>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
           
            <tr>
                <td align="center" colspan="2">
                            <asp:Button ID="btnHandle" SkinID="button2" Visible="false" runat="server" CommandName="btnHandle" meta:resourcekey="btnHandle"/> 
                            <asp:Button ID="btnBack" runat="server" CommandName="btnBack" meta:resourcekey="btnBack"/>  
                </td>
            </tr>
                <div id="divHandleDataInsert" visible="false" runat="server">
                    <tr>
                        <td align="right" style="background-color:LightBlue">
                            <asp:Label ID="lblAction" runat="server" meta:resourcekey="lblAction"></asp:Label> 
                        </td>
                        <td>
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                <ContentTemplate>
                                    <asp:DropDownList ID="ddlStatus" AutoPostBack="true" OnSelectedIndexChanged="ddlStatus_SelectedIndexChanged" runat="server"></asp:DropDownList>
                                    <asp:DropDownList Visible="false" ID="ddlChangeOrganizationID" runat="server"></asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="rfvAction" meta:resourcekey="rfvAction" runat="server" ControlToValidate="ddlStatus"
                                    Display="None" SetFocusOnError="True" ValidationGroup="vUpdate"></asp:RequiredFieldValidator>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr style="display:none">
                        <td align="right" style="background-color:LightBlue">
                            <asp:Label ID="lblSendMail" runat="server" meta:resourcekey="lblSendMail"></asp:Label> 
                        </td>
                        <td>
                            <asp:RadioButtonList ID="rbtlSendMail" RepeatDirection="Horizontal" RepeatColumns="5" RepeatLayout="Table" runat="server">
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="background-color:LightBlue">
                            <asp:Label ID="lblHandleDate" runat="server" meta:resourcekey="lblHandleDate"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtHandleDate" runat="server"></asp:TextBox>
                            <ajaxToolkit:CalendarExtender ID="ceHandleDate" runat="server" Format="yyyy/MM/dd" TargetControlID="txtHandleDate">
                            </ajaxToolkit:CalendarExtender>
                            <asp:RequiredFieldValidator ID="rfvHandleDate" meta:resourcekey="rfvHandleDate" runat="server" ControlToValidate="txtHandleDate"
                                    Display="None" SetFocusOnError="True" ValidationGroup="vUpdate"></asp:RequiredFieldValidator>
                            <asp:CompareValidator meta:resourcekey="cvHandleDate" ID="cvHandleDate" runat="server" ControlToValidate="txtHandleDate" Display="None"
                                Operator="DataTypeCheck" SetFocusOnError="True" Type="Date" ValidationGroup="vUpdate"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="background-color:LightBlue">
                            <asp:Label ID="lblMemo" runat="server" meta:resourcekey="lblMemo"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtMemo" MaxLength="500" runat="server" Height="74px"
                                TextMode="MultiLine" Width="350px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvMemo" meta:resourcekey="rfvMemo" runat="server" ControlToValidate="txtMemo"
                                Display="None" SetFocusOnError="True" ValidationGroup="vUpdate"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2">
                            <asp:Button ID="btnUpdate" runat="server" CommandName="btnUpdate" ValidationGroup="vUpdate" meta:resourcekey="btnUpdate"/>  
                            <asp:Button ID="btnCancel" runat="server" CommandName="btnCancel" meta:resourcekey="btnCancel"/>  
                            <ajaxToolkit:ConfirmButtonExtender ID="cbUpdate" runat="server" 
                                meta:resourcekey="cbUpdate" TargetControlID="btnUpdate">
                            </ajaxToolkit:ConfirmButtonExtender>    
                            <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="True"
                                ShowSummary="False" ValidationGroup="vUpdate" />
                        </td>
                    </tr>
                </div>      

        </table>

    </ItemTemplate>
</asp:FormView>
